package com.example.taxfloatproject20240926.ui;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
			Intent bootIntent = new Intent(context, RegisterActivity.class);
			bootIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(bootIntent);
		}

	}

}
